package com.framework.web.sys.domain;

import com.framework.core.domain.CommonEntity;
import com.framework.core.domain.IdEntity;

import javax.persistence.*;
import java.util.Date;

/**
 * Created by fusf on 2016/5/14.
 */
@Entity
@Table(name = "t_sys_resource")
public class Resource extends CommonEntity implements java.io.Serializable {

    private String resourceName;
    private String resourceDesc;
    private String resourceType;
    private String resourceUrl;
    private String status;
    private int sortIndex;
    private String parentId;
    private String iconCls;//图标
    private String clickFun;//点击事件


    @Basic
    @Column(name = "RESOURCE_NAME")
    public String getResourceName() {
        return resourceName;
    }

    public void setResourceName(String resourceName) {
        this.resourceName = resourceName;
    }

    @Basic
    @Column(name = "RESOURCE_DESC")
    public String getResourceDesc() {
        return resourceDesc;
    }

    public void setResourceDesc(String resourceDesc) {
        this.resourceDesc = resourceDesc;
    }

    @Basic
    @Column(name = "RESOURCE_TYPE")
    public String getResourceType() {
        return resourceType;
    }

    public void setResourceType(String resourceType) {
        this.resourceType = resourceType;
    }

    @Basic
    @Column(name = "RESOURCE_URL")
    public String getResourceUrl() {
        return resourceUrl;
    }

    public void setResourceUrl(String resourceUrl) {
        this.resourceUrl = resourceUrl;
    }

    @Basic
    @Column(name = "STATUS")
    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Basic
    @Column(name = "SORT_INDEX")
    public int getSortIndex() {
        return sortIndex;
    }

    public void setSortIndex(int sortIndex) {
        this.sortIndex = sortIndex;
    }

    @Basic
    @Column(name = "PARENT_ID")
    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    @Basic
    @Column(name = "icon_cls")
    public String getIconCls() {
        return iconCls;
    }

    public void setIconCls(String iconCls) {
        this.iconCls = iconCls;
    }

    @Basic
    @Column(name = "click_fun")
    public String getClickFun() {
        return clickFun;
    }

    public void setClickFun(String clickFun) {
        this.clickFun = clickFun;
    }
}
